<?php

namespace app\index\service;

use app\index\dao\LawyerImpressionDao;

/**
 * Class LawyerImpressionService
 * @package app\index\service
 */
class LawyerImpressionService
{
    // dao
    private LawyerImpressionDao $lawyerImpressionDao;

    public function __construct(LawyerImpressionDao $lawyerImpressionDao)
    {
        $this->lawyerImpressionDao = $lawyerImpressionDao;
    }

    /**
     * 记录曝光行为
     * @param string $scene
     * @param $lawyerId
     * @param $userId
     * @return void
     */
    public function insert(string $scene, $lawyerId, $userId): void
    {
        $this->lawyerImpressionDao->insert($scene, $lawyerId, $userId);
    }

}
